/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.publish.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 资源发布包Entity
 * @author unnamed
 * @version 2017-06-27
 */
public class EleSourceGroupPublish extends DataEntity<EleSourceGroupPublish> {
	
	private static final long serialVersionUID = 1L;
	private String publishBatch;		// publish_batch
	private String groupId;		// group_id
	private String equipmentId;		// equipment_id
	private String isPublish;		// is_publish
	private String name;
	private String mac;

	private String delApply; // 是否删除审请记录
	private String delApproval; // 是否删除审核记录

	public EleSourceGroupPublish() {
		super();
	}

	public EleSourceGroupPublish(String id){
		super(id);
	}

	
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getMac() {
		return mac;
	}

	public void setMac(String mac) {
		this.mac = mac;
	}

	@Length(min=0, max=100, message="publish_batch长度必须介于 0 和 100 之间")
	public String getPublishBatch() {
		return publishBatch;
	}

	public void setPublishBatch(String publishBatch) {
		this.publishBatch = publishBatch;
	}
	
	@Length(min=1, max=100, message="group_id长度必须介于 1 和 100 之间")
	public String getGroupId() {
		return groupId;
	}

	public void setGroupId(String groupId) {
		this.groupId = groupId;
	}
	
	@Length(min=1, max=100, message="equipment_id长度必须介于 1 和 100 之间")
	public String getEquipmentId() {
		return equipmentId;
	}

	public void setEquipmentId(String equipmentId) {
		this.equipmentId = equipmentId;
	}
	
	@Length(min=0, max=1, message="is_publish长度必须介于 0 和 1 之间")
	public String getIsPublish() {
		return isPublish;
	}

	public void setIsPublish(String isPublish) {
		this.isPublish = isPublish;
	}

	public String getDelApply(){
		return delApply;
	}

	public EleSourceGroupPublish setDelApply(String delApply){
		this.delApply = delApply;
		return this;
	}

	public String getDelApproval(){
		return delApproval;
	}

	public EleSourceGroupPublish setDelApproval(String delApproval){
		this.delApproval = delApproval;
		return this;
	}
}